<?php
namespace Summer\Easypay\Http\Controllers\Traits;

use Yansongda\Pay\Pay;
use Yansongda\Pay\Log;
use Config;

trait EasyPayFactory
{
    protected $pay_alipay;// 支付宝支付
    protected $pay_wechat;// 微信支付
    function pay_wechat(){
        $config=Config::get('summer.easypay::wechat');
        $this->pay_wechat = Pay::wechat($config);
        return $this->pay_wechat;
    }
    function pay_alipay(){
        $config=Config::get('summer.easypay::alipay');
        $this->pay_alipay = Pay::alipay($config);
        return $this->pay_alipay;
    }

}
